package org.gpswalker.sys.server.components;

public enum TTypes {
    WALKING (1), DRIVING (2), RUNNING (3), CYCLING (4);
    private int intValue;
    
    
    private TTypes(int value) {
	intValue = value;
    }
    
    public int intValue () {
	return intValue;
    }
    
    public static TTypes typeWithInt(int intVal) {
	switch (intVal) {
	case 1:
	    return WALKING;
	case 2:
	    return DRIVING;
	case 3:
	    return RUNNING;
	case 4:
	    return CYCLING;
	}
	return WALKING;
    }
    
}
